package com.mazong.servershirodemo.pojo;

import java.util.Set;

public class TbUser {
    private Integer id;
    private String userName;
    private String userPass;

    // 用户对应的角色集合
    private Set<TbRole> roles;

    public TbUser(Integer id, String userName, String userPass, Set<TbRole> roles) {
        this.id = id;
        this.userName = userName;
        this.userPass = userPass;
        this.roles = roles;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public Set<TbRole> getRoles() {
        return roles;
    }

    public void setRoles(Set<TbRole> roles) {
        this.roles = roles;
    }
}
